﻿using System;
using System.Collections.Generic;
using GeoAPI.Geometries;

namespace NetTopologySuite.Index
{
	public interface ISpatialIndex<T>
	{
		void Insert(Envelope itemEnv, T item);

		IList<T> Query(Envelope searchEnv);

		void Query(Envelope searchEnv, IItemVisitor<T> visitor);

		bool Remove(Envelope itemEnv, T item);
	}
}
